<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="description" content="">
<meta http-equiv="x-dns-prefetch-control" content="on">

<title>首页</title>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<script src="../js/jquery-v1.11.2.min.js"></script>
<script src="../js/common.js"></script>
<script src="../js/customer.js"></script>
</head>
<body>
	<div>
		<section class="slider_inner">
			<div class="slider_dot">
				<div class="dot_checked w_checked"></div>
				<div class="dot_none w_none"></div>
				<div class="dot_none w_none"></div>
				<div class="dot_none w_none"></div>
				<div class="dot_none w_none"></div>
			</div>
			<div class="slider_item">
				<img src="../img/banner.png" />
			</div>
		</section>
		<section class="pall15" style="overflow: hidden;">
			<div class="home_button mr4p" onclick="callCar('NOW');">
				<label class="hometext">马上叫车</label> <i class="iconfont home_ico">&#xe6b2;</i>
			</div>
			<div class="home_button" onclick="callCar('BOOK');">
				<label class="hometext" >预约叫车</label> <i
					class="iconfont home_ico">&#xe70b;</i>
			</div>
			<div class="home_button mr4p" onclick="myOrder();">
				<label class="hometext">我的订单</label> <i class="iconfont home_ico">&#xe710;</i>
			</div>
			<div class="home_button">
				<label class="hometext">交运客服</label> <label class="tel">65376537</label>
				<i class="iconfont home_ico">&#xe711;</i>
			</div>
		</section>
	</div>
</body>
<script>
 $(function (){
	 checkTokenIndex();//token验证
	 
	 	 var isFrom = getCookie("isFrom"); 
	 	 //说明是从订单列表页面过来的
	 	 if("list"==isFrom){
				window.location.href="../customer/order/order_list.html";
				return;
	 	 }
	 	 if("me"==isFrom){
	 	 		window.location.href="../customer/me/me.html";	
	 	 		return;
	 	 }
	 	 delCookie("isFrom");
	 
     var LocString = String(window.document.location.href);
     var sourceFrom = GetArgsFromHref("sourceFrom");
     if(sourceFrom=='LOGIN'){
    	 callCar('NOW');
     }
	}); 
function callCar(type){
	if(type=='BOOK'){
		alert('暂时不支持，请使用‘立即叫车’');
		return;
	}
	
	//NOW-立即叫车 BOOK-预定
	 window.location.href="../customer/order/select_track.html?callType="+type+"&fromType=INDEX"
}

function myOrder(){
	window.location.href=_global.custOrderUrl;
}
</script>
</html>